<?php
	$aCvList = array();
	$aCvList = $aContent['cvList'];
//	var_dump($aContent);
?>

<div class="raw-fluid">
	<div class="span12">
		<h3>SPR Doc Manager - List of all submition</h3>
	</div>
</div>

<div class="raw-fluid">
	<div class="span12">
		<?php if (!empty($aCvList)) :?>
				<table class="table table-striped" id="iDivCvList">
					<thead>
						<th>Name</th>
						<th>Email</th>
						<th>Comments</th>
						<th>Date</th>
						<th>File</th>
						<th>Status</th>
					</thead>

					<tbody>
						<?php foreach($aCvList as $aCvItem) : ?>
							<tr>
								<td><?php echo $aCvItem['name']; ?></td>
								<td><?php echo $aCvItem['email']; ?></td>
								<td><?php echo $aCvItem['comments']; ?></td>
								<td><?php echo $aCvItem['date']; ?></td>
								<td>
									<?php
										$aFile = unserialize($aCvItem['file']);
									?>
									<a href="<?php echo $aFile['url'];?>">Download</a>
								</td>
								<td><?php echo ($aCvItem['status'] == 0) ? 'Pending' : 'Done'; ?></td>

							</tr>
						<?php endforeach; ?>
					</tbody>
				</table>
		<?php endif; ?>
	</div>
</div>
